<#include "../include/header.html">
<body style="text-align: center">
<form>
    <div class="form-group row">
        <label for="out" class="col-sm-2 col-form-label">转出</label>
        <div class="col-sm-10">
            <input type="text" class="form-control" id="out">
        </div>
    </div>
    <div class="form-group row">
        <label for="in" class="col-sm-2 col-form-label">转入</label>
        <div class="col-sm-10">
            <input type="text" class="form-control" id="in">
        </div>
    </div>
    <div class="form-group row">
        <label for="amount" class="col-sm-2 col-form-label">金额</label>
        <div class="col-sm-10">
            <input type="text" class="form-control" id="amount">
        </div>
    </div>
    <br/>
    <button id="submit" type="button" class="btn btn-primary">确认</button>
    <button id="cancel" type="button" class="btn btn-primary">取消</button>
</form>
<script>
    $("#cancel").click(function () {
        window.parent.$("#invoiceOageInfo").data("kendoWindow").close();
    })
    $("#submit").click(function () {
        let accountOut = $("#out").val();
        let accountIn = $("#in").val();
        let amount = $("#amount").val();
        $.post("/test/account/amountTransfer",{accountOut,accountIn,amount},function () {
            window.parent.$("#invoiceOageInfo").data("kendoWindow").close();
        })
    })
</script>
</body>